package cz.uhk.ppro.services;

import javax.servlet.http.HttpSession;
import cz.uhk.ppro.form.Login;

public class LoginChecker {
	public boolean checkLogin(HttpSession session, String role){
		Login login = (Login)session.getAttribute("login");
		if (login.getGroup().compareTo(role)==0){
			return true;
		} else {
			return false;
		}
	}
}
